package live.common;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class StringUtil {
	/**
	 * 重新组装Map数据
	 * @param map
	 * @return
	 */
	public static Map returnNewMap(Map map){
		Map newMap = new HashMap();
		Iterator iterator = map.entrySet().iterator();
		while (iterator.hasNext()) {
			Map.Entry me = (Map.Entry) iterator.next();
			String key = me.getKey().toString();
			String[] value = (String[]) me.getValue();
			newMap.put(key, value[0]);
		}
		return newMap;
	}
}
